/**
 * @fileOverview main
 * @author: burning <www.cafeinit.com>
 * @date: 2016-12-12
 */

import Vue from 'vue'
import VueRouter from 'vue-router'
import VueResource from 'vue-resource'

import Goods from 'components/goods/Goods'
import Comments from 'components/Comments'
import Store from 'components/Store'

import App from './App'

Vue.use(VueRouter)
Vue.use(VueResource)

const routes = [
  { path: '/', component: Goods },
  { path: '/goods', component: Goods },
  { path: '/comments', component: Comments },
  { path: '/store', component: Store }
]

const router = new VueRouter({
  routes,
  linkActiveClass: 'active'
})

new Vue({
  template: '<App />',
  components: { App },
  router: router
}).$mount('#app')
